package com.wm.blog_admin.dao;


import com.wm.blog_admin.mapper.TMenuMapper;
import com.wm.blog_common.base.BaseDAO;
import com.wm.blog_common.entity.TMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * <p>
 *  服务DAO层
 * </p>
 *
 * @author wm_yu
 * @since 2020-03-24
 */
@Repository
public class TMenuDAO extends BaseDAO<TMenuMapper, TMenu> {

    @Autowired
    private TMenuMapper tMenuMapper;

    /**
     * 条件查询sort邻近的菜单信息
     * @param b true:查询比当前id小的最近一条  false:查询比当前id大的最近一条数据
     * @return
     */
    public TMenu nearSortMenu(Map<String,Object> map) {
        return tMenuMapper.nearSortMenu(map);
    }

}

